<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>

<body>
    <div id="app" style="width: 200px; height: 150px; background-color: bisque;padding: 20px;">
        <p>姓名：{{ name }}</p>
        <p>年龄：{{ age }}</p>
        <p>兴趣爱好：{{ hobby }}</p>
        <p>专业：{{ major }}</p>
    </div>
</body>
<script>
    const info = {
        data() {
            return {
                name: '郑智勇',
                age: '22',
                hobby: '睡觉 睡觉 睡觉',
                major: '计算机',
            }
        }
    }

    Vue.createApp(info).mount('#app')
</script>

</html>